{% extends 'base.html' %}

{% block body %}
<div class="col-lg-3">
    <div class="row">
        <div class="form-group">
            <a href="{{ url_for('main.github_login') }}">Login Via github</a>
        </div>
    </div>
    <form method="POST" action="{{ url_for('main.login') }}">
        {{ form.hidden_tag() }}
        <div class="form-group">
            {{ form.username.label }}
            {{ form.username(class_=('form-control')) }}
        </div>
        <div class="form-group">
            {{ form.password.label }}
            {{ form.password(class_=('form-control')) }}
        </div>
        <div class="form-group">
            {{ form.remember.label }}
            {{form.remember(class_=('-form-control')) }}
        </div>
        <div class="form-group">
            {% for error in form.username.errors %}
                <div class="alert alert-warning">{{ error }}</div>
            {% endfor %}
            {% for error in form.password.errors %}
                <div class="alert alert-warning">{{ error }}</div>
            {% endfor %}
        </div>
        <input class="btn btn-primary" type="submit" value="Login">
    </form>
</div>
{% endblock %}